﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "titlebar.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public:
    void initWindow();
    void setTable();
    //void initTopWindow();
    //void initTitleBar( const QString& filePath = QString(), const QString& titleContent = QString());

protected:

    virtual void closeEvent(QCloseEvent *event)override;



private slots:
    void on_action_new_triggered();
    void on_dataReady(QString name,QString path,QString width,QString height,QString info);


private:
    Ui::MainWindow *ui;
    static int ID;

};
#endif // MAINWINDOW_H
